<?php
class NoticeAction extends HomeCommonAction {
    public function index() {
   
        $id = $_GET['id'];

        if(intval($id)<=0){
             $this->error("页面不存在");
            return false;
        }

        $Notice = D("Notice");
        $notice_info = $Notice->where('id = '.$id)->order('add_time desc')->find();

        if(count($notice_info)<=0){
            $this->error("页面不存在");
            return false;
        }
//        print_r($notice_info);
        $this->assign('notice_info',$notice_info);
        $this->display('notice');
    }




}
?>
